package love.client.bot;

import java.io.IOException;

import love.client.model.Joueur;
import love.socket.ServerManager;

public class RandomBot extends AbstractBot {
	
	public RandomBot(String name){
		joueur = new Joueur(name);
	}
	
	
	@Override
	public void playCard(String cartePiochee) throws IOException {
		int carteRandom = ServerManager.random(1, 8);

		String request = getId()+" DO play "+getPartieId()+","+cartePiochee+","+(ServerManager.random(1, 4))+","+carteRandom;
		ServerManager.getInstance(this).print(request);
	}

}
